﻿using System.Drawing;
using CuttingEdge.Conditions;

namespace Just4Devs.Vsirc.Addin.UI
{
	public class ScreenMessageComponent
	{
		protected Color DEFAULT_COLOR = Color.Black;

		public string Text { get; protected set; }

		public Color TextColor { get; protected set; }

		public ScreenMessageComponent()
		{
			TextColor = DEFAULT_COLOR;
			Text = string.Empty;
		}

		public ScreenMessageComponent(string text)
		{
			Condition.Requires(text).IsNotNull();

			TextColor = DEFAULT_COLOR;
			Text = text;
		}

		public ScreenMessageComponent(string text, Color textColor)
		{
			Condition.Requires(text).IsNotNull();

			this.Text = text;
			this.TextColor = textColor;
		}
	}
}